package com.mwf.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.mwf.common.valid.ListValue;
import jakarta.validation.constraints.*;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

/**
 * Ʒ?
 * 
 * @author mwf
 * @email wenfeiman@gmail.com
 * @date 2024-08-06 23:09:15
 */
@Data
@TableName("pms_brand")
public class BrandEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * Ʒ??id
	 */
	@TableId
	private Long brandId;
	/**
	 * Ʒ???
	 */
	@NotBlank(message = "品牌名不能为空")
	private String name;
	/**
	 * Ʒ??logo??ַ
	 */
	@URL
	@NotEmpty
	private String logo;
	/**
	 * ???
	 */
	private String descript;
	/**
	 * ??ʾ״̬[0-????ʾ??1-??ʾ]
	 */
	@ListValue(values={0,1})
	private Integer showStatus;
	/**
	 * ????????ĸ
	 */
	@Pattern(regexp = "^[a-zA-z]$",message = "首字母必须为字母")
	private String firstLetter;
	/**
	 * ???
	 */
	@Min(value = 0)
	@NotNull
	private Integer sort;

}
